﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Topic.aspx.cs" Inherits="WeakEndForum.TopicPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
    <div class="container">
        <asp:Literal ID="literMessageSuccess" runat="server" />
        <asp:Label runat="server" CssClass="h2 RalewayFont" ID="lblPostTitle"></asp:Label>
        <%if (IsMod())
              { %>
            <asp:Button runat="server" ID="btnToggleSujet" CssClass="btn btn-default pull-right" Text="Fermer le sujet" OnClick="btnToggleSujet_Click" />
            <%} %>      
        <div class="forumHeader enableCarriageReturn">
            <asp:Table runat="server" ID="postTable"></asp:Table>
        </div>
        <p class="h4">Répondre</p>
        <asp:RequiredFieldValidator ID="valRequieredNewTopicContent" ValidationGroup="newMessageValidation" ErrorMessage="Un message est obligatoire." ControlToValidate="txtNewMessageContent" Display="None" runat="server" />
        <asp:TextBox CssClass="form-control textarea" ValidationGroup="newMessageValidation" TextMode="MultiLine" ID="txtNewMessageContent" placeholder="Entrer du contenu..." runat="server" />
        <asp:ValidationSummary ID="validationSummNewMessage" CssClass="alert alert-danger" ValidationGroup="newMessageValidation" DisplayMode="BulletList" runat="server" />
        <asp:Button ID="btnNewMessage" CssClass="btn btn-primary" ValidationGroup="newMessageValidation" OnClick="btnNewMessage_Click" Text="Envoyer" runat="server" />
    </div> 
</asp:Content>
